﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Khuyen_Mai.ascx.cs" Inherits="UserConTrols_Khuyen_Mai" %>
<asp:Label ID="showthongbao" runat="server" Text=""></asp:Label>
<a name="pagging"></a>
<div class="cnt_block1">
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td class="c_top_c">
                &nbsp;<br />
                &nbsp;TIN KHUYẾN MÃI<br />
                &nbsp;
            </td>
        </tr>
    </table>
</div>
<hr color="#008000" size="1" noshade>
<asp:DataList ID="DataList1" runat="server" RepeatColumns="1">
    <ItemTemplate>
        <table border="0" width="100%" cellpadding="3" cellspacing="0">
            <tr>
                <td style="width:40%; vertical-align: top" rowspan="5">
                    <a href='<%# "Xem_Khuyen_Mai.aspx?id=" + Eval("id") %>'>
                        <img border="0" width="200" height="200" src='<%# "hinh_khuyen_mai/" + Eval("hinhanh") %>' /></a>
                </td>
                <td>
                    <asp:HyperLink ID="HyperLink2" runat="server" Font-Bold="true" NavigateUrl='<%# "../Xem_Khuyen_Mai.aspx?id=" + Eval("id") %>'
                        Text='<%#(string)Eval("tieude") %>'></asp:HyperLink>
                        <br />
                         <font color="green">Ngày đăng tin :
                        <%#(((DateTime)Eval("ngaydangtin")).ToString("dd/MM/yyyy"))%></font>
                </td>
            </tr>
            <tr>
                <td>
                        <font color="blue"><%# (string)Eval("motavantat") %></font>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <br />
                </td>
            </tr>
        </table>
    </ItemTemplate>
    <FooterTemplate>
    </FooterTemplate>
</asp:DataList>
<asp:Panel ID="pnPhanTrang" Visible="false" runat="server">
    <hr color="#008000" size="1" noshade>
    <table width="100%">
        <tr>
            <td align="left" width="15%">
                <asp:HyperLink ID="trangdautien" runat="server">Trang Đầu</asp:HyperLink>
            </td>
            <td align="left" width="15%">
                <asp:HyperLink ID="trangsau" runat="server">Trang Trước</asp:HyperLink>
            </td>
            <td align="center" width="40%">
                <asp:Label ID="tongconghanghoa" runat="server" Text=""></asp:Label>
            </td>
            <td align="right" width="15%">
                <asp:HyperLink ID="trangtiep" runat="server">Trang Tiếp</asp:HyperLink>
            </td>
            <td align="right" width="15%">
                <asp:HyperLink ID="trangcuoi" runat="server">Trang Cuối</asp:HyperLink>
            </td>
        </tr>
    </table>
</asp:Panel>
